.class Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;
.super Ljava/lang/Object;
.source "LetMeAndroidThatForYouActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;


# direct methods
.method constructor <init>(Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    .line 85
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6
    .parameter "v"

    .prologue
    const/4 v5, 0x1

    .line 88
    iget-object v2, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v2}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->haveInternet(Landroid/content/Context;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 89
    iget-object v2, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-static {v2}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->access$0(Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;)Landroid/widget/EditText;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    invoke-interface {v2}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_0

    .line 90
    iget-object v2, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    iget-object v3, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-static {v3}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->access$0(Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;)Landroid/widget/EditText;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    invoke-interface {v3}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v3

    const-string v4, " "

    const-string v5, "+"

    invoke-virtual {v3, v4, v5}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->access$3(Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 91
    .local v0, bitURL:Ljava/lang/String;
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.SEND"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 93
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "text/plain"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 94
    const-string v2, "android.intent.extra.TEXT"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 96
    iget-object v2, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    iget-object v3, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    const v4, 0x7f050002

    invoke-virtual {v3, v4}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v3}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {v2, v3}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->startActivity(Landroid/content/Intent;)V

    .line 103
    .end local v0           #bitURL:Ljava/lang/String;
    .end local v1           #intent:Landroid/content/Intent;
    :goto_0
    return-void

    .line 98
    :cond_0
    iget-object v2, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v2}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v3}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f050006

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 101
    :cond_1
    iget-object v2, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v2}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    iget-object v3, p0, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity$2;->this$0:Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;

    invoke-virtual {v3}, Lnl/pullesson/android/lmatfy/LetMeAndroidThatForYouActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f050007

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method
